﻿using CommunityToolkit.Mvvm.ComponentModel;
using MyWpfFramework.Models;
using MyWpfFramework.Pages;
using MyWpfFramework.UserControls;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Media.Animation;

namespace MyWpfFramework.ViewModels
{
    public partial class MenuViewModel:ObservableObject
    {
        [ObservableProperty]
        private ItemMenu itemMenu;
        [ObservableProperty]
        private string header="菜单";
        [ObservableProperty]
        private List<SubItem> subItems;

        public MenuViewModel()
        {
            //SubItems = new List<SubItem>();
            //SubItems.Add(new SubItem("wpf控件", new uc_page(), "/Resources/board.png"));
            //SubItems.Add(new SubItem("wpf控件2", new GridViewPage(), "/Resources/overview.png"));
            //ItemMenu? item1 = new ItemMenu("菜单", SubItems);
        }
    }
    
}
